package com.example.android.apis.test;

import org.kandroid.memtracer.MemoryInstrumentation;
import org.kandroid.memtracer.MemoryTraceCsvWriter;
import org.kandroid.memtracer.MemoryTracer;

public class MyMemoryInstrumentation extends MemoryInstrumentation {


	public MyMemoryInstrumentation() {
		
	}

	private static final String[] MY_METRICS = {
		MemoryTracer.METRIC_KEY_LABEL,
		MemoryTracer.METRIC_KEY_JAVA_SIZE,
		MemoryTracer.METRIC_KEY_JAVA_ALLOCATED,
		MemoryTracer.METRIC_KEY_JAVA_FREE,
		MemoryTracer.METRIC_KEY_JAVA_PSS,
		MemoryTracer.METRIC_KEY_JAVA_PRIVATE_DIRTY,
		MemoryTracer.METRIC_KEY_JAVA_SHARED_DIRTY,
		MemoryTracer.METRIC_KEY_GC_INVOCATION_COUNT,
	};
	
	@Override
	protected MemoryTracer createMemoryTracer() {
		return new MemoryTracer(new MemoryTraceCsvWriter(MY_METRICS));
	}
	
	@Override
	protected String getMainActivityName() {
		return "com.example.android.apis.ApiDemos";
	}
}
